
import {createStore,applyMiddleware,combineReducers} from "redux";
import thunk from "redux-thunk";
import count from "./reducers/count";
import registerList from "./reducers/registerList";


// 合并所有的reducer
const rootReducer =  combineReducers({
    count:count,
    registerList:registerList
});


//仓库对象：createStore(对数据的处理,数据);
const store = createStore(rootReducer,applyMiddleware(thunk));

export default store;


